Mean squared error

The average loss per example when L2 loss is used. Calculate MSE as follows:1

  1. Calculate the L2 loss for a batch.
  2. Divide the L2 loss by the number of examples in the batch.

Mean Squared Error is a popular training optimizer, particularly for linear regression.1

Formula

MSE=1Ni=0N(yiy^i)2MSE = \frac{1}{N}\sum_{i=0}^{N} (y_i - \hat{y}_i)^2

where:

See also

Footnotes

  1. developers.google.com/machine-learning/glossary#MSE 2

2024 © ak